import type { RouteRecordRaw } from 'vue-router'

const setting: RouteRecordRaw[] = [
  {
    path: 'setup/system',
    name: 'SystemSetup',
    component: () => import('@/views/modules/setup/system-setup'),
    redirect: { name: 'SystemSetupFunction' },
    children: [
      {
        path: 'function',
        name: 'SystemSetupFunction',
        meta: {
          currentActiveMenu: 'SystemSetup'
        },
        component: () =>
          import('@/views/modules/setup/system-setup/FunctionConfig.vue')
      },
      {
        path: 'register',
        name: 'SystemSetupRegister',
        meta: {
          currentActiveMenu: 'SystemSetup'
        },
        component: () =>
          import('@/views/modules/setup/system-setup/RegisterConfig.vue')
      }
    ]
  },
  {
    path: 'setup/website',
    name: 'WebsiteSetup',
    redirect: { name: 'WebsiteSetupForBasie' },
    component: () => import('@/views/modules/setup/website-setup'),
    children: [
      {
        path: 'base',
        name: 'WebsiteSetupForBasie',
        component: () =>
          import('@/views/modules/setup/website-setup/BasicConfig.vue'),
        meta: {
          currentActiveMenu: 'WebsiteSetup'
        }
      },
      {
        path: 'seo',
        name: 'WebsiteSetupForSEO',
        component: () =>
          import('@/views/modules/setup/website-setup/SeoConfig.vue'),
        meta: {
          currentActiveMenu: 'WebsiteSetup'
        }
      },
      {
        path: 'contact',
        name: 'WebsiteSetupForContact',
        component: () =>
          import('@/views/modules/setup/website-setup/ContactConfig.vue'),
        meta: {
          currentActiveMenu: 'WebsiteSetup'
        }
      },
      {
        path: 'protocol',
        name: 'WebsiteSetupForProtocol',
        component: () =>
          import('@/views/modules/setup/website-setup/ProtocolConfig.vue'),
        meta: {
          currentActiveMenu: 'WebsiteSetup'
        }
      },
      {
        path: 'domain',
        name: 'WebsiteSetupForDomain',
        component: () =>
          import('@/views/modules/setup/website-setup/DomainConfig.vue'),
        meta: {
          currentActiveMenu: 'WebsiteSetup'
        }
      }
    ]
  }
]

export default setting
